package lk.icta.core.entity;

import lk.icta.common.entity.BaseEntity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: araaya
 * Date: 11/7/12
 * Time: 12:44 PM
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(schema = "ELAND_RAIL")
public class RegisteredPost extends BaseEntity {

    @Column(nullable = false)
    private ModuleType moduleType;

    @Column(nullable = false)
    private long moduleId;

    @Column(nullable = false)
    @Temporal(value = TemporalType.DATE)
    private Date registeredDate;

    @Column(nullable = false)
    private String registeredPostRefNumber;

    @Embedded
    private LifeCycleInfo lifeCycleInfo = new LifeCycleInfo();

    public ModuleType getModuleType() {
        return moduleType;
    }

    public void setModuleType(ModuleType moduleType) {
        this.moduleType = moduleType;
    }

    public long getModuleId() {
        return moduleId;
    }

    public void setModuleId(long moduleId) {
        this.moduleId = moduleId;
    }

    public LifeCycleInfo getLifeCycleInfo() {
        return lifeCycleInfo;
    }

    public void setLifeCycleInfo(LifeCycleInfo lifeCycleInfo) {
        this.lifeCycleInfo = lifeCycleInfo;
    }

    public Date getRegisteredDate() {
        return registeredDate;
    }

    public void setRegisteredDate(Date registeredDate) {
        this.registeredDate = registeredDate;
    }

    public String getRegisteredPostRefNumber() {
        return registeredPostRefNumber;
    }

    public void setRegisteredPostRefNumber(String registeredPostRefNumber) {
        this.registeredPostRefNumber = registeredPostRefNumber;
    }
}
